package com.pro.common.service.sitecontent.model.db;

import com.pro.common.api.CommonConst;
import com.pro.common.api.enums.EnumSysRole;
import com.pro.common.api.model.BaseConfigModel;
import com.pro.common.api.model.auth.IOpenConfigClass;
import com.pro.framework.api.enums.IEnumToDbDbCode;
import com.pro.framework.javatodb.annotation.JTDTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 路由表
 *
 * @author admin
 */
@Data
@Schema(description = "菜单路由")
@JTDTable(sequences = {
        "UNIQUE KEY `code` (`code`,`sys_role`)"
}, module = CommonConst.Modules.siteContent)
public class AuthRouteGroup extends BaseConfigModel implements IEnumToDbDbCode, IOpenConfigClass {
    @Schema(description = "系统角色")//admin/agent/user
    private EnumSysRole sysRole;
    @Schema(description = "编号")
    private String code;
    @Schema(description = "名称")
    private String groupName;
}
